.class public Lcom/google/android/gms/common/api/c;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/android/gms/common/api/c$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<O::",
        "Lcom/google/android/gms/common/api/a$a;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Lcom/google/android/gms/common/api/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/android/gms/common/api/a<",
            "TO;>;"
        }
    .end annotation
.end field

.field private final c:Lcom/google/android/gms/common/api/a$a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "TO;"
        }
    .end annotation
.end field

.field private final d:Lcom/google/android/gms/common/api/internal/e2;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/android/gms/common/api/internal/e2<",
            "TO;>;"
        }
    .end annotation
.end field

.field private final e:Landroid/os/Looper;

.field private final f:I

.field private final g:Lcom/google/android/gms/common/api/d;

.field protected final h:Lcom/google/android/gms/common/api/internal/l0;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/google/android/gms/common/api/a;Lcom/google/android/gms/common/api/a$a;Lcom/google/android/gms/common/api/c$a;)V
    .locals 1
    .param p1    # Landroid/app/Activity;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/app/Activity;",
            "Lcom/google/android/gms/common/api/a<",
            "TO;>;TO;",
            "Lcom/google/android/gms/common/api/c$a;",
            ")V"
        }
    .end annotation

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, "Null activity is not permitted."

    invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/j0;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "Api must not be null."

    invoke-static {p2, v0}, Lcom/google/android/gms/common/internal/j0;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "Settings must not be null; use Settings.DEFAULT_SETTINGS instead."

    invoke-static {p4, v0}, Lcom/google/android/gms/common/internal/j0;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/google/android/gms/common/api/c;->b:Lcom/google/android/gms/common/api/a;

    iput-object p3, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    iget-object v0, p4, Lcom/google/android/gms/common/api/c$a;->b:Landroid/os/Looper;

    iput-object v0, p0, Lcom/google/android/gms/common/api/c;->e:Landroid/os/Looper;

    invoke-static {p2, p3}, Lcom/google/android/gms/common/api/internal/e2;->a(Lcom/google/android/gms/common/api/a;Lcom/google/android/gms/common/api/a$a;)Lcom/google/android/gms/common/api/internal/e2;

    move-result-object p2

    iput-object p2, p0, Lcom/google/android/gms/common/api/c;->d:Lcom/google/android/gms/common/api/internal/e2;

    new-instance p2, Lcom/google/android/gms/common/api/internal/v0;

    invoke-direct {p2, p0}, Lcom/google/android/gms/common/api/internal/v0;-><init>(Lcom/google/android/gms/common/api/c;)V

    iput-object p2, p0, Lcom/google/android/gms/common/api/c;->g:Lcom/google/android/gms/common/api/d;

    iget-object p2, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/google/android/gms/common/api/internal/l0;->a(Landroid/content/Context;)Lcom/google/android/gms/common/api/internal/l0;

    move-result-object p2

    iput-object p2, p0, Lcom/google/android/gms/common/api/c;->h:Lcom/google/android/gms/common/api/internal/l0;

    invoke-virtual {p2}, Lcom/google/android/gms/common/api/internal/l0;->c()I

    move-result p2

    iput p2, p0, Lcom/google/android/gms/common/api/c;->f:I

    iget-object p2, p4, Lcom/google/android/gms/common/api/c$a;->a:Lcom/google/android/gms/common/api/internal/r1;

    iget-object p2, p0, Lcom/google/android/gms/common/api/c;->h:Lcom/google/android/gms/common/api/internal/l0;

    iget-object p3, p0, Lcom/google/android/gms/common/api/c;->d:Lcom/google/android/gms/common/api/internal/e2;

    invoke-static {p1, p2, p3}, Lcom/google/android/gms/common/api/internal/h;->a(Landroid/app/Activity;Lcom/google/android/gms/common/api/internal/l0;Lcom/google/android/gms/common/api/internal/e2;)V

    iget-object p1, p0, Lcom/google/android/gms/common/api/c;->h:Lcom/google/android/gms/common/api/internal/l0;

    invoke-virtual {p1, p0}, Lcom/google/android/gms/common/api/internal/l0;->a(Lcom/google/android/gms/common/api/c;)V

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/google/android/gms/common/api/a;Lcom/google/android/gms/common/api/a$a;Lcom/google/android/gms/common/api/internal/r1;)V
    .locals 1
    .param p1    # Landroid/app/Activity;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/app/Activity;",
            "Lcom/google/android/gms/common/api/a<",
            "TO;>;TO;",
            "Lcom/google/android/gms/common/api/internal/r1;",
            ")V"
        }
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    new-instance v0, Lcom/google/android/gms/common/api/n;

    invoke-direct {v0}, Lcom/google/android/gms/common/api/n;-><init>()V

    invoke-virtual {v0, p4}, Lcom/google/android/gms/common/api/n;->a(Lcom/google/android/gms/common/api/internal/r1;)Lcom/google/android/gms/common/api/n;

    invoke-virtual {p1}, Landroid/app/Activity;->getMainLooper()Landroid/os/Looper;

    move-result-object p4

    invoke-virtual {v0, p4}, Lcom/google/android/gms/common/api/n;->a(Landroid/os/Looper;)Lcom/google/android/gms/common/api/n;

    invoke-virtual {v0}, Lcom/google/android/gms/common/api/n;->a()Lcom/google/android/gms/common/api/c$a;

    move-result-object p4

    invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/android/gms/common/api/c;-><init>(Landroid/app/Activity;Lcom/google/android/gms/common/api/a;Lcom/google/android/gms/common/api/a$a;Lcom/google/android/gms/common/api/c$a;)V

    return-void
.end method

.method protected constructor <init>(Landroid/content/Context;Lcom/google/android/gms/common/api/a;Landroid/os/Looper;)V
    .locals 1
    .param p1    # Landroid/content/Context;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/google/android/gms/common/api/a<",
            "TO;>;",
            "Landroid/os/Looper;",
            ")V"
        }
    .end annotation

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, "Null context is not permitted."

    invoke-static {p1, v0}, Lcom/google/android/gms/common/internal/j0;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "Api must not be null."

    invoke-static {p2, v0}, Lcom/google/android/gms/common/internal/j0;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "Looper must not be null."

    invoke-static {p3, v0}, Lcom/google/android/gms/common/internal/j0;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/google/android/gms/common/api/c;->b:Lcom/google/android/gms/common/api/a;

    const/4 p1, 0x0

    iput-object p1, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    iput-object p3, p0, Lcom/google/android/gms/common/api/c;->e:Landroid/os/Looper;

    invoke-static {p2}, Lcom/google/android/gms/common/api/internal/e2;->a(Lcom/google/android/gms/common/api/a;)Lcom/google/android/gms/common/api/internal/e2;

    move-result-object p1

    iput-object p1, p0, Lcom/google/android/gms/common/api/c;->d:Lcom/google/android/gms/common/api/internal/e2;

    new-instance p1, Lcom/google/android/gms/common/api/internal/v0;

    invoke-direct {p1, p0}, Lcom/google/android/gms/common/api/internal/v0;-><init>(Lcom/google/android/gms/common/api/c;)V

    iput-object p1, p0, Lcom/google/android/gms/common/api/c;->g:Lcom/google/android/gms/common/api/d;

    iget-object p1, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    invoke-static {p1}, Lcom/google/android/gms/common/api/internal/l0;->a(Landroid/content/Context;)Lcom/google/android/gms/common/api/internal/l0;

    move-result-object p1

    iput-object p1, p0, Lcom/google/android/gms/common/api/c;->h:Lcom/google/android/gms/common/api/internal/l0;

    invoke-virtual {p1}, Lcom/google/android/gms/common/api/internal/l0;->c()I

    move-result p1

    iput p1, p0, Lcom/google/android/gms/common/api/c;->f:I

    new-instance p1, Lcom/google/android/gms/common/api/internal/d2;

    invoke-direct {p1}, Lcom/google/android/gms/common/api/internal/d2;-><init>()V

    return-void
.end method

.method private final a(ILcom/google/android/gms/common/api/internal/j2;)Lcom/google/android/gms/common/api/internal/j2;
    .locals 1
    .param p2    # Lcom/google/android/gms/common/api/internal/j2;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<A::",
            "Lcom/google/android/gms/common/api/a$c;",
            "T:",
            "Lcom/google/android/gms/common/api/internal/j2<",
            "+",
            "Lcom/google/android/gms/common/api/h;",
            "TA;>;>(ITT;)TT;"
        }
    .end annotation

    invoke-virtual {p2}, Lcom/google/android/gms/common/api/internal/BasePendingResult;->f()V

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->h:Lcom/google/android/gms/common/api/internal/l0;

    invoke-virtual {v0, p0, p1, p2}, Lcom/google/android/gms/common/api/internal/l0;->a(Lcom/google/android/gms/common/api/c;ILcom/google/android/gms/common/api/internal/j2;)V

    return-object p2
.end method

.method private final h()Lcom/google/android/gms/common/internal/d1;
    .locals 3

    new-instance v0, Lcom/google/android/gms/common/internal/d1;

    invoke-direct {v0}, Lcom/google/android/gms/common/internal/d1;-><init>()V

    iget-object v1, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    instance-of v2, v1, Lcom/google/android/gms/common/api/a$a$b;

    if-eqz v2, :cond_0

    check-cast v1, Lcom/google/android/gms/common/api/a$a$b;

    invoke-interface {v1}, Lcom/google/android/gms/common/api/a$a$b;->e()Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->l()Landroid/accounts/Account;

    move-result-object v1

    goto :goto_0

    :cond_0
    iget-object v1, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    instance-of v2, v1, Lcom/google/android/gms/common/api/a$a$a;

    if-eqz v2, :cond_1

    check-cast v1, Lcom/google/android/gms/common/api/a$a$a;

    invoke-interface {v1}, Lcom/google/android/gms/common/api/a$a$a;->l()Landroid/accounts/Account;

    move-result-object v1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    invoke-virtual {v0, v1}, Lcom/google/android/gms/common/internal/d1;->a(Landroid/accounts/Account;)Lcom/google/android/gms/common/internal/d1;

    iget-object v1, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    instance-of v2, v1, Lcom/google/android/gms/common/api/a$a$b;

    if-eqz v2, :cond_2

    check-cast v1, Lcom/google/android/gms/common/api/a$a$b;

    invoke-interface {v1}, Lcom/google/android/gms/common/api/a$a$b;->e()Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;

    move-result-object v1

    if-eqz v1, :cond_2

    invoke-virtual {v1}, Lcom/google/android/gms/auth/api/signin/GoogleSignInAccount;->q()Ljava/util/Set;

    move-result-object v1

    goto :goto_1

    :cond_2
    invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;

    move-result-object v1

    :goto_1
    invoke-virtual {v0, v1}, Lcom/google/android/gms/common/internal/d1;->a(Ljava/util/Collection;)Lcom/google/android/gms/common/internal/d1;

    return-object v0
.end method


# virtual methods
.method public final a()Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    return-object v0
.end method

.method public a(Landroid/os/Looper;Lcom/google/android/gms/common/api/internal/n0;)Lcom/google/android/gms/common/api/a$f;
    .locals 9
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/os/Looper;",
            "Lcom/google/android/gms/common/api/internal/n0<",
            "TO;>;)",
            "Lcom/google/android/gms/common/api/a$f;"
        }
    .end annotation

    invoke-direct {p0}, Lcom/google/android/gms/common/api/c;->h()Lcom/google/android/gms/common/internal/d1;

    move-result-object v0

    iget-object v1, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/common/internal/d1;->a(Ljava/lang/String;)Lcom/google/android/gms/common/internal/d1;

    iget-object v1, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/common/internal/d1;->b(Ljava/lang/String;)Lcom/google/android/gms/common/internal/d1;

    invoke-virtual {v0}, Lcom/google/android/gms/common/internal/d1;->a()Lcom/google/android/gms/common/internal/c1;

    move-result-object v5

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->b:Lcom/google/android/gms/common/api/a;

    invoke-virtual {v0}, Lcom/google/android/gms/common/api/a;->c()Lcom/google/android/gms/common/api/a$b;

    move-result-object v2

    iget-object v3, p0, Lcom/google/android/gms/common/api/c;->a:Landroid/content/Context;

    iget-object v6, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    move-object v4, p1

    move-object v7, p2

    move-object v8, p2

    invoke-virtual/range {v2 .. v8}, Lcom/google/android/gms/common/api/a$b;->a(Landroid/content/Context;Landroid/os/Looper;Lcom/google/android/gms/common/internal/c1;Ljava/lang/Object;Lcom/google/android/gms/common/api/d$b;Lcom/google/android/gms/common/api/d$c;)Lcom/google/android/gms/common/api/a$f;

    move-result-object p1

    return-object p1
.end method

.method public final a(Lcom/google/android/gms/common/api/internal/j2;)Lcom/google/android/gms/common/api/internal/j2;
    .locals 1
    .param p1    # Lcom/google/android/gms/common/api/internal/j2;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<A::",
            "Lcom/google/android/gms/common/api/a$c;",
            "T:",
            "Lcom/google/android/gms/common/api/internal/j2<",
            "+",
            "Lcom/google/android/gms/common/api/h;",
            "TA;>;>(TT;)TT;"
        }
    .end annotation

    const/4 v0, 0x1

    invoke-direct {p0, v0, p1}, Lcom/google/android/gms/common/api/c;->a(ILcom/google/android/gms/common/api/internal/j2;)Lcom/google/android/gms/common/api/internal/j2;

    return-object p1
.end method

.method public a(Landroid/content/Context;Landroid/os/Handler;)Lcom/google/android/gms/common/api/internal/n1;
    .locals 2

    new-instance v0, Lcom/google/android/gms/common/api/internal/n1;

    invoke-direct {p0}, Lcom/google/android/gms/common/api/c;->h()Lcom/google/android/gms/common/internal/d1;

    move-result-object v1

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/d1;->a()Lcom/google/android/gms/common/internal/c1;

    move-result-object v1

    invoke-direct {v0, p1, p2, v1}, Lcom/google/android/gms/common/api/internal/n1;-><init>(Landroid/content/Context;Landroid/os/Handler;Lcom/google/android/gms/common/internal/c1;)V

    return-object v0
.end method

.method public final b()I
    .locals 1

    iget v0, p0, Lcom/google/android/gms/common/api/c;->f:I

    return v0
.end method

.method public final c()Landroid/os/Looper;
    .locals 1

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->e:Landroid/os/Looper;

    return-object v0
.end method

.method public final d()Lcom/google/android/gms/common/api/a;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/android/gms/common/api/a<",
            "TO;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->b:Lcom/google/android/gms/common/api/a;

    return-object v0
.end method

.method public final e()Lcom/google/android/gms/common/api/a$a;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TO;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->c:Lcom/google/android/gms/common/api/a$a;

    return-object v0
.end method

.method public final f()Lcom/google/android/gms/common/api/internal/e2;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/android/gms/common/api/internal/e2<",
            "TO;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->d:Lcom/google/android/gms/common/api/internal/e2;

    return-object v0
.end method

.method public final g()Lcom/google/android/gms/common/api/d;
    .locals 1

    iget-object v0, p0, Lcom/google/android/gms/common/api/c;->g:Lcom/google/android/gms/common/api/d;

    return-object v0
.end method
